import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router)

const INDEX = () => import( /* webpackChunkName: "index" */ '@/views/index');   /*授权页*/

const REGISTER = () => import( /* webpackChunkName: "register" */ '@/views/register');   /*注册*/
const LOGIN = () => import( /* webpackChunkName: "login" */ '@/views/login');   /*登录*/
const PERSONAL_INFO = () => import( /* webpackChunkName: "personalInfo" */ '@/views/personalInfo');   /*个人信息*/
const ACTIVATE_VILLAGE = () => import( /* webpackChunkName: "activateVillage" */ '@/views/activateVillage');   /*小区激活*/

const VISIT = () => import( /* webpackChunkName: "visit" */ '@/views/visit');   /*拜访*/
const VISIT_RR_CODE = () => import( /* webpackChunkName: "visitQRCode" */ '@/views/visitQRCode');   /*拜访二维码*/

const OWNER = () => import( /* webpackChunkName: "owner" */ '@/views/owner');   /*业主*/
const OWNER_HISTORY = () => import( /* webpackChunkName: "ownerHistory" */ '@/views/ownerHistory');   /*业主出入历史*/

const SECURITYMANAGE = () => import( /* webpackChunkName: "securityManage" */ '@/views/securityManage');   /*安保管理*/
const SCAN = () => import( /* webpackChunkName: "scan" */ '@/views/scan');   /*扫一扫*/

const PROPERTY_MANAGE = () => import( /* webpackChunkName: "propertyManage" */ '@/views/propertyManage');   /*物业管理*/
const FAMILY_MANAGE = () => import( /* webpackChunkName: "familyManage" */ '@/views/familyManage');   /*住户管理*/
const OUT_IN_HISTORY = () => import( /* webpackChunkName: "outInHistory" */ '@/views/outInHistory');   /*物业出入历史*/
const STAFF_MANAGE = () => import( /* webpackChunkName: "staffManage" */ '@/views/staffManage');   /*员工管理*/

const router = new Router({
    routes: [
        {
            /*授权页*/
            path: '/',
            name: 'INDEX',
            component: INDEX,
            meta: {
                keepAlive: false,
            }
        },

		{
			/*登录*/
			path: '/login',
			name: 'LOGIN',
			component: LOGIN,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*注册*/
			path: '/register',
			name: 'REGISTER',
			component: REGISTER,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*个人信息*/
			path: '/personalInfo',
			name: 'PERSONAL_INFO',
			component: PERSONAL_INFO,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*小区激活*/
			path: '/activateVillage',
			name: 'ACTIVATE_VILLAGE',
			component: ACTIVATE_VILLAGE,
			meta: {
				keepAlive: false,
			}
		},

        {
            /*拜访*/
            path: '/visit',
            name: 'VISIT',
            component: VISIT,
            meta: {
                keepAlive: false,
            }
        },
		{
			/*拜访二维码*/
			path: '/visitQRCode',
			name: 'VISIT_RR_CODE',
			component: VISIT_RR_CODE,
			meta: {
				keepAlive: false,
			}
		},

        {
            /*业主*/
            path: '/owner',
            name: 'OWNER',
            component: OWNER,
            meta: {
                keepAlive: false,
            }
        },
		{
			/*业主出入历史*/
			path: '/ownerHistory',
			name: 'OWNER_HISTORY',
			component: OWNER_HISTORY,
			meta: {
				keepAlive: false,
			}
		},

		{
			/*安保管理*/
			path: '/securityManage',
			name: 'SECURITYMANAGE',
			component: SECURITYMANAGE,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*扫一扫*/
			path: '/scan',
			name: 'SCAN',
			component: SCAN,
			meta: {
				keepAlive: false,
			}
		},

        {
            /*物业管理*/
            path: '/propertyManage',
            name: 'PROPERTY_MANAGE',
            component: PROPERTY_MANAGE,
            meta: {
                keepAlive: false,
            }
        },
		{
			/*住户管理*/
			path: '/familyManage',
			name: 'FAMILY_MANAGE',
			component: FAMILY_MANAGE,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*物业出入历史*/
			path: '/outInHistory',
			name: 'OUT_IN_HISTORY',
			component: OUT_IN_HISTORY,
			meta: {
				keepAlive: false,
			}
		},
		{
			/*员工管理*/
			path: '/staffManage',
			name: 'STAFF_MANAGE',
			component: STAFF_MANAGE,
			meta: {
				keepAlive: false,
			}
		},

    ]
});

export default router
